package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.List;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

/**
 * 我的优惠券  数据概览解析bean
 * @author jiafeiyu
 *
 */
public class MyCouponOverViewBean implements Serializable ,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2966569372916566799L;
	
	private List<TicketBean> offline_tickets;
	private List<OnLineCouponBean> online_tickets;
	private String desc ;
	private String error ;
	public List<TicketBean> getOffline_tickets() {
		return offline_tickets;
	}
	public void setOffline_tickets(List<TicketBean> offline_tickets) {
		this.offline_tickets = offline_tickets;
	}
	public List<OnLineCouponBean> getOnline_tickets() {
		return online_tickets;
	}
	public void setOnline_tickets(List<OnLineCouponBean> online_tickets) {
		this.online_tickets = online_tickets;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getError() {
		return error;
	}
	public void setError(String error) {
		this.error = error;
	}
	
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		if (json != null) {
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, MyCouponOverViewBean.class);
		}
		return null;
	}

}
